import request from '@/utils/request'

// 查询区域设置列表
export function listArea (query) {
  return request({
    url: '/platform/area/list',
    method: 'get',
    params: query
  })
}

// 查询区域设置详细
export function getArea (areaId) {
  return request({
    url: '/platform/area/' + areaId,
    method: 'get'
  })
}

// 新增区域设置
export function addArea (data) {
  return request({
    url: '/platform/area',
    method: 'post',
    data: data
  })
}

// 修改区域设置
export function updateArea (data) {
  return request({
    url: '/platform/area',
    method: 'put',
    data: data
  })
}

// 删除区域设置
export function delArea (areaId) {
  return request({
    url: '/platform/area/' + areaId,
    method: 'delete'
  })
}
